from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _

class UserSettings(models.Model):
    """
    User settings model
    """
    
    user = models.ForeignKey(User, unique=True)
    message_notify = models.NullBooleanField(_("sends you a message"), default=True, null=True, blank=True)
    
    def __unicode__(self):
        return _("%s's settings") % self.user
    
